package com.lagou.service.fallback;/**
 * Created by IntelliJ IDEA.
 * User: Yangdx.
 * Date: 2020/7/25.
 * Time: 8:25.
 * Tags: Code, we are serious.
 */

import com.lagou.service.EmailServiceClient;
import org.springframework.stereotype.Component;

/**
 * @author
 * @create 2020-07-25 8:25
 **/
@Component
public class EmailServiceClientFallback implements EmailServiceClient {

    /*@Autowired
    private JavaMailSender mailSender;
    @Value("${config.email.sender.name}")
    private String from;*/

    @Override
    public Boolean sendMail(String email, String checkCode) {
        //创建SimpleMailMessage对象
        /*SimpleMailMessage message = new SimpleMailMessage();
        //邮件发送人
        message.setFrom(from);
        //邮件接收人
        message.setTo(email);
        //邮件主题
        message.setSubject("验证码");
        //邮件内容
        message.setText(checkCode);
        //发送邮件
        mailSender.send(message);*/
        return false;
    }
}